home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Software of the Month Club
/
Amiga General Interest Volume 220 (1995)(SOMC)(Disk 2 of y)[SMCxxxC30Ix].zip
/
Amiga General Interest Volume 220 (1995)(SOMC)(Disk 2 of y)[SMCxxxC30Ix].adf
/
Typeface
/
Source
/
error.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-29
|
991b
|
53 lines
/*****************/
/* */
/* Error handing */
/* */
/*****************/
#include "typeface.h"
void ErrorCode(ULONG code)
{
ShowReq(GetString(msgFatalError),GetString(msgCancel),ErrorText(code));
Quit();
}
char *ErrorText(ULONG code)
{
switch (code)
{
case ASLALLOC:
return "AllocAslRequest()";
break;
case CREATEPORT:
return "CreateMsgPort()";
break;
case LOCKSCREEN:
return "LockPubScreen()";
break;
case OPENSCREEN:
return "OpenScreenTagList()";
break;
case ALLOCVEC:
return "AllocVec()";
break;
case NEWWINDOW:
return "BGUI_NewObject(WINDOW)";
break;
case NEWFILE:
return "BGUI_NewObject(FILEREQ)";
break;
case OPENWINDOW:
return "DoMethod(WM_OPEN)";
break;
case NEWPROP:
return "NewObject(PROPGCLASS)";
break;
case NEWBUTTON:
return "NewObject(BUTTONGCLASS)";
break;
default:
return "<Unknown>";
}
}